import { constantRoutes } from '@/router'

const state = {
    routes: constantRoutes
}
const mutations = {
    setRoutes(state, newRoutes) {
        state.routes = [...constantRoutes...newRoutes]
    }
}
const actions = {}
export default {
    namespaced: true,
    state,
    mutations,
    actions
}